package com.ss5;

/**
 * @Auther: 520ljs
 * @Date: 2022/3/10 - 03 - 10 - 11:48
 */
public class MsbStudent {
    //属性
    String name;
    int age;
    static String school;

    //这是一个main方法，是程序的入口：
    public static void main(String[] args){
        MsbStudent.school = "马士兵教育";
        //创建学生对象：
        MsbStudent s1 = new MsbStudent();
        s1.name = "张三";
        s1.age = 19;

        MsbStudent s2 = new MsbStudent();
        s2.name = "李四";
        s2.age = 21;

        System.out.println(s2.school);
    }
}
